package com.loser.csp.service.backmanager.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.loser.csp.dal.dao.PcommentsMapper;
import com.loser.csp.dal.model.Pcomments;
import com.loser.csp.service.backmanager.PCommentServices;
@Component
public class PCommentServicesImpl implements PCommentServices{
    @Autowired
    private PcommentsMapper pcommentsMapper;
    @Override
    public int deleteById(Integer id) {
        return pcommentsMapper.deleteById(id);
    }

    @Override
    public int insertPcomments(Pcomments record) {
        return pcommentsMapper.insertPcomments(record);
    }

    @Override
    public int updateByPcomments(Pcomments record) {
        return pcommentsMapper.updateByPcomments(record);
    }

    @Override
    public Pcomments selectById(Integer id) {
        return pcommentsMapper.selectById(id);
    }

}
